package com.biconn.bigdata.es.client.config;/**
 * Created by Administrator on 2018/8/5.
 */

import com.biconn.bigdata.common.util.JsonUtil;

/**
 * Elasticsearch mapping模型
 * botu
 * com.bicon.botu.es.model
 *
 * @author 123774135@qq.com
 * @create 2018-08-05 11:35
 **/
public class ElasticsearchMapping implements  java.io.Serializable{

    private String name;

    private TypeEnum type;
    private StoreEnum store;
    private AnalyzedEnum index;
    private String fieldname;//javabean字段
    private String searchAnalyzer;//搜索用哪种分词器
    private String analyzer;//分词用哪种分词器
    private AnalyzedEnum similarity;
    
    
    
    public AnalyzedEnum getSimilarity() {
		return similarity;
	}

	public void setSimilarity(AnalyzedEnum similarity) {
		this.similarity = similarity;
	}

	public String getFieldname() {
		return fieldname;
	}

	public void setFieldname(String fieldname) {
		this.fieldname = fieldname;
	}

	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TypeEnum getType() {
        return type;
    }

    public void setType(TypeEnum type) {
        this.type = type;
    }

    public StoreEnum getStore() {
        return store;
    }

    public void setStore(StoreEnum store) {
        this.store = store;
    }

    public AnalyzedEnum getIndex() {
        return index;
    }

    public void setIndex(AnalyzedEnum index) {
        this.index = index;
    }

    public String getSearchAnalyzer() {
        return searchAnalyzer;
    }

    public void setSearchAnalyzer(String searchAnalyzer) {
        this.searchAnalyzer = searchAnalyzer;
    }

    public String getAnalyzer() {
        return analyzer;
    }

    public void setAnalyzer(String analyzer) {
        this.analyzer = analyzer;
    }

    @Override
    public String toString() {
        return JsonUtil.objectToJson(this);
    }
}
